package com.neulogistics.infrastructure.common.rpc.client;

import cn.hutool.json.JSONObject;
import com.neulogistics.infrastructure.common.serviceresult.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;


@FeignClient("CustomerCenter")
public interface CustomerCenterClient {
    @GetMapping("/customerCenter/customer/get/{customerId}")
    BaseResponse<JSONObject> getCustomerById(@PathVariable(value = "customerId") Integer customerId);

    @GetMapping("/customerCenter/order/get/{orderId}")
    BaseResponse<JSONObject> getOrderById(@PathVariable(value = "orderId") Long orderId);
}
